<%-- 
    Document   : modificarMateria
    Created on : 02-dic-2012, 22:58:07
    Author     : DAHER
--%>

<%@page import="modelo.AdmMateria"%>
<%@page import="modelo.Materia"%>
<%@page import="java.util.ArrayList"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body>
        <form action="MateriaServlet?tipo=3" method="post">
        <table border="1" width="5" cellspacing="4" cellpadding="1">
            <thead>
                <tr>
                    <th>Materia</th> 
                    <th>Modificar</th>                    
                </tr>
            </thead><tbody>
        <%
            ArrayList<Materia> lista=AdmMateria.getMaterias();
            Materia materia=null;
            for(int i=0;i<lista.size();i++){
                materia=lista.get(i);
            %>
              <tr>
                  <th><%=materia.getNombre() %></th>             
                  <th><input type="radio" name="materia" value="<%=materia.getId()%>" /></th>
              </tr>
        
        <%  }  %>
            </tbody>
        </table>
            <input type="submit" value="Modificar" name="modificar" />
        </form>
    </body>
</html>
